package actionspeedymodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// ActionElementDecomposeConfig 后台平台菜单表
type ActionElementDecomposeConfig struct {
	Id           int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	EleType      int64          `json:"eleType" gorm:"column:ele_type;type:bigint;default:0;not null;comment:一级类型"` // 是否缓存 0否 1是
	ElePart      int64          `json:"elePart" gorm:"column:ele_part;type:bigint;default:0;not null;comment:二级类型"`
	Quality      int64          `json:"quality" gorm:"column:quality;type:bigint;default:0;not null;comment:品质:1:s 2:a 3:b 4:c"`
	PieceNumber  int64          `json:"pieceNumber" gorm:"column:piece_number;type:bigint;default:0;not null;comment:可以兑换得碎片数量"`    // 可以兑换得碎片数量
	UpdateUserId int64          `json:"updated_user_id" gorm:"column:updated_user_id;type:bigint;default:0;not null;comment:更新人id"` // 更新人id
	CreatedAt    time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt    time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt    gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
